
package hk.ces.oxfam.patch.xml;

import hk.ces.oxfam.patch.db.result.DataResult;
import java.util.List;

/**
 *
 * @author ReutyCheng
 */
public class DataResultXML implements DataXML
{
  private DataResult dataResult;
  private String[] columnNames;

  public DataResultXML(DataResult dataResult, String[] columnNames)
  {
    this.dataResult = dataResult;
    this.columnNames = columnNames;
  }

  public String[] getHeader()
  {
    return columnNames;
  }

  public List<Object[]> getBodyItem()
  {
    return dataResult.getDatas();
  }
}
